package com.justnow.offer;

import javax.swing.plaf.synth.SynthTextAreaUI;
import java.util.Scanner;

/**
 * @author justnow
 * Created on 2020-08-08
 * Description
 */
public class Solution2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        if (n == m && n == 1) {
            int temp = scanner.nextInt();
            System.out.println(temp);
        }
    }
}
